﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using WeifenLuo.WinFormsUI.Docking;

namespace card
{
    public partial class Frm_cancelFrom : Form
    {

        public string cardadd
        {
            get;
            set;
        }
        public string str_operator
        {
            get;
            set;
        }
        public string ioyardid
        {
            get;
            set;
        }
        public Frm_cancelFrom()
        {
            InitializeComponent();
            Init();
        }

        private void Init()
        {
            

            Frm_cancellogin frm1 = new Frm_cancellogin();
            frm1.Text = "取消登记-" + str_operator;
            frm1.cardadd = cardadd;
            if (Session.Role == "市提")
            {
                frm1.ioyardid = "0";
            }
            if (Session.Role == "市入")
            {
                frm1.ioyardid = "1";
            }
            if (Session.Role == "全部")
            {
                frm1.ioyardid = "9";
            }
            frm1.Show(dpMain);

            Frm_cancellogin_his frm2 = new Frm_cancellogin_his();
            frm2.Text = "取消历史登记-" + str_operator;
            frm2.cardadd = cardadd;
            if (Session.Role == "市提")
            {
                frm2.ioyardid = "0";
            }
            if (Session.Role == "市入")
            {
                frm2.ioyardid = "1";
            }
            if (Session.Role == "全部")
            {
                frm2.ioyardid = "9";
            }
            frm2.Show(dpMain);
        }
    }
}
